package com.orphan.marketFront.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.orphan.marketFront.mapper.GoodsMapper;
import com.orphan.marketFront.po.Goods;
import com.orphan.marketFront.service.IGoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 用作在主菜单显示商品 服务实现类
 * </p>
 *
 * @author orphan
 * @since 2021-07-13
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {

    @Resource
    GoodsMapper goodsMapper;

    @Override
    public List<Goods> getAllGoodsPhone() {
        return goodsMapper.getAllGoodsPhone();
    }

    @Override
    public List<Goods> getAllGoodsTV() {
        return goodsMapper.getAllGoodsTV();
    }

    @Override
    public List<Goods> getAllGoods() {
        return goodsMapper.getAllGoods();
    }
}
